<script>
	export default {
		onLaunch: function() {
			console.log('App Launch')
		},
		onShow: function() {
			console.log('App Show')
			let that =this
			that.globalData.buBottom = uni.getSystemInfoSync().windowHeight - uni.getSystemInfoSync().safeArea.bottom
			// #ifdef MP-WEIXIN
			uni.getSystemInfo({
				success: res => {
					// console.log('手机信息res'+res.model)
					let modelmes = res.model;
					if (modelmes.search('iPhone X') != -1) {
						that.globalData.isIphoneX = true;
						// that.globalData.buBottom = 68;
					}
				}
			});
			// #endif
		},
		onHide: function() {
			console.log('App Hide')
		},
		globalData: {
			buBottom: 0,
			isIphoneX: false, // 是否为iphoneX
			statusBarHeight: uni.getSystemInfoSync()['statusBarHeight'],
		}
	}
</script>

<style lang='scss'>
	/*每个页面公共css */
	@import "@/node_modules/uview-ui/index.scss";
	@import "@/static/font/iconfont.css";
	@import "@/static/font/iconfont-weapp-icon.css";
	page {
		/* background-color: #f8f8f8; */
		/* background:linear-gradient(74deg, #383F4F 0%, #1A293C 100%); */
		background: linear-gradient(180deg, #CCDCF8 0%, #FFFFFF 100%);
		min-height: 100%;
	}
	view {
		box-sizing: border-box;
	}
	.page-view {
		position: relative;
		z-index: 10;
	}
	.is-flex {
		display: flex;
		justify-content: space-between;
		align-items: center;
	}
	.is-center-flex {
		display: flex;
		justify-content: center;
		align-items: center;
	}
	.top-line {
		position: absolute;
		left: 50%;
		top: 16rpx;
		transform: translateX(-50%);
		width: 70rpx;
		height: 6rpx;
		background: #737B88;
		opacity: 0.15;
		border-radius: 5rpx;
	}
	.header-bg{
		position: fixed;
		left: 0;
		top: 0;
		width: 100%;
		height: 650rpx;
		background:linear-gradient(74deg, #383F4F 0%, #1A293C 100%);
	}
	.u-fixed-b {
		// padding-top: 32rpx;
		padding-bottom: calc(24rpx + constant(safe-area-inset-bottom));
		padding-bottom: calc(24rpx + env(safe-area-inset-bottom));
	}
	/deep/ .uni-input-input {
		font-size: 28rpx;
	}
</style>
